<?php
$group_form_formatting["Group1"]="text-align:center; width:150px";
$group_form_formatting["Group2"]="text-align:center; width:150px";
$group_form_formatting["Group3"]="text-align:center; width:150px";
$group_form_formatting["Sort"]="text-align:center; width:150px";

if(!$group_order[0])
        {
        $group_order[0]="ascending";
        }
if(!$group_order[1])
        {
        $group_order[1]="ascending";
        }
if(!$group_order[2])
        {
        $group_order[2]="ascending";
        }
if(!$sort_order[0])
        {
        $sort_order[0]="ascending";
        }

$constraint_selection_table[0]["Group1"]=$form->generateSelectMenu("group_name[0]",$group_name[0],$constraint_array,"","",true,$group_name0_event);
$ascending_order_selected=($group_order[0]=="ascending")?"checked":"";
$constraint_selection_table[0]["Group1"].="<br><input type=\"radio\" name=\"group_order[0]\" value=\"ascending\" $ascending_order_selected $group_order0_event>"."Asc";
$descending_order_selected=($group_order[0]=="descending")?"checked":"";
$constraint_selection_table[0]["Group1"].="<input type=\"radio\" name=\"group_order[0]\" value=\"descending\" $descending_order_selected $group_order0_event>"."Desc";

$constraint_selection_table[0]["Group2"]=$form->generateSelectMenu("group_name[1]",$group_name[1],$constraint_array,"","",true,$group_name1_event);
$ascending_order_selected=($group_order[1]=="ascending")?"checked":"";
$constraint_selection_table[0]["Group2"].="<br><input type=\"radio\" name=\"group_order[1]\" value=\"ascending\" $ascending_order_selected $group_order1_event>"."Asc";
$descending_order_selected=($group_order[1]=="descending")?"checked":"";
$constraint_selection_table[0]["Group2"].="<input type=\"radio\" name=\"group_order[1]\" value=\"descending\" $descending_order_selected $group_order1_event>"."Desc";

$constraint_selection_table[0]["Group3"]=$form->generateSelectMenu("group_name[2]",$group_name[2],$constraint_array,"","",true,$group_name2_event);
$ascending_order_selected=($group_order[2]=="ascending")?"checked":"";
$constraint_selection_table[0]["Group3"].="<br><input type=\"radio\" name=\"group_order[2]\" value=\"ascending\" $ascending_order_selected $group_order2_event>"."Asc";
$descending_order_selected=($group_order[2]=="descending")?"checked":"";
$constraint_selection_table[0]["Group3"].="<input type=\"radio\" name=\"group_order[2]\" value=\"descending\" $descending_order_selected $group_order2_event>"."Desc";

$constraint_selection_table[0]["Sort"]=$form->generateSelectMenu("sort_name[0]",$sort_name[0],$constraint_array,"","","",$sort_name0_event);
$ascending_order_selected=($sort_order[0]=="ascending")?"checked":"";
$constraint_selection_table[0]["Sort"].="<br><input type=\"radio\" name=\"sort_order[0]\" value=\"ascending\" $ascending_order_selected $sort_order0_event>"."Asc";
$descending_order_selected=($sort_order[0]=="descending")?"checked":"";
$constraint_selection_table[0]["Sort"].="<input type=\"radio\" name=\"sort_order[0]\" value=\"descending\" $descending_order_selected $sort_order0_event>"."Desc";
?>